package cn.itsource.autoconfigure;

import cn.itsource.config.WXChatProperties;
import cn.itsource.service.WxChatService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({WXChatProperties.class})
public class WxChatAutoConfiguration {

    @Bean
    public WxChatService wxChatService(WXChatProperties wxChatProperties){
        return new WxChatService(wxChatProperties);
    }
}
